<?php

/*Author: Panos Sakkos*/

class Attribute
{
	var $id;
	var $category_id;
	var $name;
	var $type;
	var $value;
	var $best_value;
	var $close_to_value;

	function __construct()
	{
		$this->id = -1;
		$this->category_id = -1;
		$this->name = "";
		$this->type = "";
		$this->value = "";
		$this->best_value = "";
		$this->close_to_value = "";
	}

	/* Mutators */

	function SetId($id)
	{
		$this->id = $id;
	}

	function SetCategoryId($category_id)
	{
		$this->category_id = $category_id;
	}

	function SetName($name)
	{
		$this->name = $name;
	}

	function SetType($type)
	{
		$this->type = $type;
	}

	function SetValue($value)
	{
		$this->value = $value;
	}	

	function SetBestValue($best_value)
	{
		$this->best_value = $best_value;
	}

	function SetCloseToValue($value)
	{
		$this->close_to_value = $value;
	}

	/* Accessors */

	function GetId()
	{
		return $this->id;
	}

	function GetCategoryId()
	{
		return $this->category_id;
	}
	
	function GetName()
	{
		return $this->name;
	}

	function GetType()
	{
		return $this->type;
	}

	function GetValue()
	{
		return $this->value;
	}

	function GetBestValue()
	{
		return $this->best_value;
	}

	function GetCloseToValue()
	{
		return $this->close_to_value;
	}
}

?>
